package com.zq.im.room.entity;

import org.jetbrains.annotations.NotNull;

import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

/**
 * Created by 张强 869518570@qq.com on 2020/9/22
 */
@Entity(tableName = "chat_msg")
public class Message {

    @PrimaryKey
    @NotNull
    @ColumnInfo(name = "id")
    private String id; //消息id

    @ColumnInfo(name = "send_user_id")
    private String sendUserId;

    @ColumnInfo(name = "accept_user_id")
    private String acceptUserId;

    @ColumnInfo(name = "msg")
    private String msg;

    @ColumnInfo(name = "sign_flag")
    private String signFlag;

    @ColumnInfo(name = "create_time")
    private String createTime;

    public Message(@NotNull String id, String sendUserId, String acceptUserId, String msg, String createTime) {
        this.id = id;
        this.sendUserId = sendUserId;
        this.acceptUserId = acceptUserId;
        this.msg = msg;
        this.createTime = createTime;
    }

    @NotNull
    public String getId() {
        return id;
    }

    public void setId(@NotNull String id) {
        this.id = id;
    }

    public String getSendUserId() {
        return sendUserId;
    }

    public void setSendUserId(String sendUserId) {
        this.sendUserId = sendUserId;
    }

    public String getAcceptUserId() {
        return acceptUserId;
    }

    public void setAcceptUserId(String acceptUserId) {
        this.acceptUserId = acceptUserId;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getSignFlag() {
        return signFlag;
    }

    public void setSignFlag(String signFlag) {
        this.signFlag = signFlag;
    }
}
